Skip to content

ci: validate app-store catalogue entries on PR#259

Merged
TeoSlayer merged 2 commits into
mainfrom
catalogue/add-validation-ci
Jun 16, 2026
Merged

ci: validate app-store catalogue entries on PR#259
TeoSlayer merged 2 commits into
mainfrom
catalogue/add-validation-ci

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

Gates every catalogue/catalogue.json change with the app-store review gate (SPEC §7.1): builds the pilot-protocol/app-template verifier and checks each entry — bundle reachable, bundle_sha256 matches, manifest validates + signature verifies, binary sha pinned, a <ns>.help method is exposed, id/version consistent, no version downgrade. Adds a reviewer PR template for the human checklist (§7.2).

Part of standardizing app publishing; full flow in pilot-protocol/app-template docs/APP-PUBLISHING-SPEC.md.

@Alexgodoroja Alexgodoroja requested a review from TeoSlayer as a code owner June 16, 2026 01:57
Comment on lines +12 to +33
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # need the base ref for the downgrade check

- uses: actions/setup-go@v5
with:
go-version: "1.25"

- name: Extract base catalogue (for downgrade check)
run: |
git show "origin/${{ github.base_ref }}:catalogue/catalogue.json" > /tmp/base-catalogue.json 2>/dev/null || echo '{"apps":[]}' > /tmp/base-catalogue.json

- name: Build verifier
run: |
git clone --depth 1 https://github.com/pilot-protocol/app-template /tmp/app-template
(cd /tmp/app-template && go build -o /tmp/pilot-app ./cmd/pilot-app)

- name: Verify catalogue entries
run: |
PILOT_CATALOGUE_BASE=/tmp/base-catalogue.json /tmp/pilot-app verify catalogue/catalogue.json
Alex Godoroja and others added 2 commits June 16, 2026 12:16
Adds a catalogue-validate workflow that runs the app-template verifier on any PR
touching catalogue/catalogue.json (bundle sha, manifest validity + signature,
<ns>.help discovery, id/version, downgrade guard), plus a reviewer PR template
for the human half of the review gate.
This is a supply-chain trust gate; building the verifier from an unpinned
upstream HEAD would let an app-template change flow straight into the gate.
Pin to the released v0.1.0 tag.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@TeoSlayer TeoSlayer force-pushed the catalogue/add-validation-ci branch from e7b3753 to 9056190 Compare June 16, 2026 09:16
@TeoSlayer TeoSlayer merged commit 6f8a552 into main Jun 16, 2026
8 checks passed
@TeoSlayer TeoSlayer deleted the catalogue/add-validation-ci branch June 16, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants